package com.learn.project2.controller.admin;

import com.learn.project2.model.bo.admin.user.UserListBO;
import com.learn.project2.model.vo.admin.history.HistoryListVO;
import com.learn.project2.service.admin.history.HistoryService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 搜索历史
 * @author wxy
 * @date 2022-01-08 11:43
 * @version 1.0
 */
@RequestMapping("admin/history")
@RestController
public class HistoryController {

    @Autowired
    HistoryService historyService;
    @RequestMapping("list")
    public Result list(String keyword, Integer userId, UserListBO userListBO){
        HistoryListVO historyListVO= historyService.selectHistory(keyword,userId,userListBO);
        return Result.ok(historyListVO);
    }
}
